package cn.org.mrliu.sms;

import java.util.Random;

import org.apache.commons.lang.math.RandomUtils;

//import com.taobao.api.ApiException;
//import com.taobao.api.DefaultTaobaoClient;
//import com.taobao.api.TaobaoClient;
//import com.taobao.api.request.AlibabaAliqinFcSmsNumSendRequest;
//import com.taobao.api.response.AlibabaAliqinFcSmsNumSendResponse;

public class AliDayu {
//	public static void main(String[] args) throws ApiException {
//		String url = "http://gw.api.taobao.com/router/rest";
//		String appkey = "";
//		String secret = "";
//		TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
//		AlibabaAliqinFcSmsNumSendRequest req = new AlibabaAliqinFcSmsNumSendRequest();
//		req.setSmsType("normal");
//		req.setSmsFreeSignName("大鱼测试");
//		int code = RandomUtils.nextInt(1000000);
//		System.out.println(code);
//		req.setSmsParam("{\"code\":\""+code+"\",\"product\":\"Hello\"}");
//		req.setRecNum("18888888888");
//		req.setSmsTemplateCode("SMS_4780211");
//		AlibabaAliqinFcSmsNumSendResponse response = client.execute(req);
//		System.out.println(response);
//		System.out.println(response.getBody());
//	}
}
